home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / src / getgp.c < prev    next >
C/C++ Source or Header  |  1994-04-12  |  654b  |  40 lines

  1. #include "vogl.h"
  2.  
  3. /*
  4.  * getgp
  5.  *
  6.  *    return the current (x, y, z) graphics position
  7.  */
  8. void getgp(
  9.   Coord *x,
  10.   Coord *y,
  11.   Coord *z)
  12. {
  13. *x = vdevice.cpW[V_X];
  14. *y = vdevice.cpW[V_Y];
  15. *z = vdevice.cpW[V_Z];
  16. }
  17.  
  18. /* ------------------------------------------------------------------------ */
  19.  
  20. /*
  21.  * getgpos
  22.  *
  23.  *    Get the current graphics position after transformation by
  24.  *    the current matrix.
  25.  */
  26. void getgpos(
  27.   Coord *x,
  28.   Coord *y,
  29.   Coord *z,
  30.   Coord *w)
  31. {
  32. *x = vdevice.cpWtrans[V_X];
  33. *y = vdevice.cpWtrans[V_Y];
  34. *z = vdevice.cpWtrans[V_Z];
  35. *w = vdevice.cpWtrans[V_W];
  36. }
  37.  
  38. /* ------------------------------------------------------------------------ */
  39.  
  40.